package code;

/**
 * @author xiaovcloud
 * @description:
 * @since 2021/8/17 12:25
 */
public class Main {
	public static int k = 0;
	static Main t1 = new Main("t1");
	public static Main t2 = new Main("t2");
	public static int i = print("i");
	public static int n = 99;
	public int j = print("j");

	static {
		print("静态块");
	}

	public Main(String str) {
		System.out.println((++k) + ": " + str + " i=" + i + " n=" + n);
		++i;
		++n;
	}

	public static int print(String str) {
		System.out.println((++k) + ": " + str + " i=" + i + " n=" + n);
		++n;
		return ++i;
	}

	public static void main(String[] args) {
		new Main("init");
	}
}

